//
//  NSObject+Parse.m
//  CyberWorld
//
//  Created by  on 2023/3/25.
//  Copyright © 2023 ms. All rights reserved.
//

#import "NSObject+Parse.h"

@implementation NSObject (Parse)

+ (id)parse:(id)JSON{
    if ([JSON isKindOfClass:[NSArray class]]) {
        return [NSArray modelArrayWithClass:[self class] json:JSON];
    }
    if ([JSON isKindOfClass:[NSDictionary class]] ||[JSON isKindOfClass:[NSString class]]||[JSON isKindOfClass:[NSData class]]) {
        return [self modelWithJSON:JSON];
    }
    return JSON;
}


@end
